﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace AffichageGrille
{
    public static class Config
    {
        public static int LargeurGrille;
        public static int HauteurGrille;
        public static string DossierLevels;

        public static void Initialize()
        {
            XmlDocument xmlConfig = new XmlDocument();
            xmlConfig.Load("config.xml");

            LargeurGrille = int.Parse(xmlConfig["config"]["LargeurGrille"].InnerText);
            HauteurGrille = int.Parse(xmlConfig["config"]["HauteurGrille"].InnerText);

            DossierLevels = xmlConfig["config"]["DossierLevels"].InnerText;
        }
    }
}
